home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
tools
/
sharp
/
xc2102.lzh
/
INCLUDE
/
STAT.H
< prev
next >
Wrap
Text File
|
1992-03-03
|
1KB
|
54 lines
/*
* stat.h X68k XC Compiler v2.10 Copyright 1990,91,92 SHARP/Hudson
*/
#ifndef __STAT_H
#define __STAT_H
#include <stddef.h>
#ifdef FORWORD
#define __PROTO_TYPE
#endif
#ifdef __STDC__
#define __PROTO_TYPE
#endif
typedef short dev_t;
typedef int ino_t;
typedef unsigned off_t;
struct stat {
dev_t st_dev; /*デバイス番号(ディスク・ドライブ番号)*/
ino_t st_ino; /*inode番号 */
short st_mode; /*ファイルタイプとファイル属性 */
short st_nlink; /*(1)リンクカウント */
short st_uid; /*(0)ユーザID */
short st_gid; /*(0)グループID */
dev_t st_rdev; /*rawデバイス番号 */
off_t st_size; /*ファイル・サイズ */
time_t st_atime; /*アクセス時刻 */
time_t st_mtime; /*モディファィ時刻 */
time_t st_ctime; /*クリエイト時刻 */
};
#define S_IREAD 0 /*読み込み専用 */
#define S_IWRITE 1 /*書き込み可能 */
#define S_IFDIR 16 /*ディレクトリー */
#define S_IFREG 32 /*通常 */
#define S_IEXEC 64 /*実行 */
#define S_IFCHR 128 /*デバイス */
#ifdef __PROTO_TYPE
int fstat(int, struct stat *);
int stat(const char *, struct stat *);
#undef __PROTO_TYPE
#else
int fstat();
int stat();
#endif
#endif